<?php
require 'Home/Controller/Controller.php ';
require 'Home/Model/HomeModel.php';
class IndexController extends Controller{
	function __Construct(){
		parent::__Construct();
		$this->model = new HomeModel();
	}
	function index(){
		$hotlist = $this->model->getHotList();
		$ranklist = $this->model->getRankList();
		$videos = $this->model->getAllVideos();
		$vtypes = $this->model->getVTypes();

		//$data = $this->model->getList();
		$this->assign('hotlist',$hotlist);
		$this->assign('ranklist',$ranklist);
		$this->assign('videos',$videos);
		$this->assign('vtypes',$vtypes);
		$this->display(); 

	}
}
?>